package com.edais.vo;

import com.edais.domain.gift.GiftPackageOrder;
import com.edais.util.DateUtil;

/**
 * Created by haoyx on 2016/11/16.
 */
public class GiftPackageOrderVo {

    private Long id;
    private String name;
    private String url;
    private String exchangeDate;
    private String status;
    private Long packageId;
    private String packageName;
    private String packageType;
    private String packageTypeName;
    private String startDate;
    private String endDate;
    private String kcodeMoney;
    private String kcodeDays;
    private String kcodeCardNo;
    private String statusText;
    private String enable;
    
    public String getStatusText() {
		return statusText;
	}

	public void setStatusText(String statusText) {
		this.statusText = statusText;
	}

	public String getEnable() {
		return enable;
	}

	public void setEnable(String enable) {
		this.enable = enable;
	}

	public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getExchangeDate() {
        return exchangeDate;
    }

    public void setExchangeDate(String exchangeDate) {
        this.exchangeDate = exchangeDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getPackageId() {
        return packageId;
    }

    public void setPackageId(Long packageId) {
        this.packageId = packageId;
    }

    public String getPackageName() {
        return packageName;
    }

    public void setPackageName(String packageName) {
        this.packageName = packageName;
    }

    public String getPackageType() {
        return packageType;
    }

    public void setPackageType(String packageType) {
        this.packageType = packageType;
    }

    public String getPackageTypeName() {
        return packageTypeName;
    }

    public void setPackageTypeName(String packageTypeName) {
        this.packageTypeName = packageTypeName;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public String getKcodeMoney() {
        return kcodeMoney;
    }

    public void setKcodeMoney(String kcodeMoney) {
        this.kcodeMoney = kcodeMoney;
    }

    public String getKcodeDays() {
        return kcodeDays;
    }

    public void setKcodeDays(String kcodeDays) {
        this.kcodeDays = kcodeDays;
    }

    public String getKcodeCardNo() {
        return kcodeCardNo;
    }

    public void setKcodeCardNo(String kcodeCardNo) {
        this.kcodeCardNo = kcodeCardNo;
    }

    public GiftPackageOrderVo() {
    }

    public GiftPackageOrderVo(GiftPackageOrder order) {
        this.id = order.getId();
        this.name = order.getName();
        this.exchangeDate = DateUtil.formatDate(order.getExchangeDate(),"yyyy-MM-dd HH:mm:ss");
        this.status = order.getStatus();
        this.packageId = order.getPackageId();
        this.packageName = order.getPackageName();
        this.packageType = order.getPackageType();
        this.packageTypeName = order.getPackageTypeName();
        this.startDate = DateUtil.formatDate(order.getStartDate(),"yyyy-MM-dd HH:mm:ss");
        this.endDate = DateUtil.formatDate(order.getEndDate(),"yyyy-MM-dd HH:mm:ss");
        this.kcodeMoney = null == order.getKcodeMoney()? null : String.valueOf(order.getKcodeMoney());
        this.kcodeDays = null == order.getKcodeDays()? null : String.valueOf(order.getKcodeDays());
        this.kcodeCardNo = order.getKcodeCardNo();
        this.enable=order.getEnable();
        this.statusText=order.getStatusText();
    }
}
